#include<iostream>
#include<string.h>
using namespace std;


int count_word(char word[]) {
	int n = 0;
	while (word[n] != '\0') {
		n++;
	}
	return n;

}

int main() {

	char word[100];
	int n;

	cin >> word;
	n = count_word(word);
	cout << n;
	return 0;

}
